import { http } from '@/utils/http/axios';
import { useGlobSetting } from '@/hooks/setting';

const globSetting = useGlobSetting();
const urlPrefix = globSetting.urlPrefix || '';

const hsot = location.origin + urlPrefix;

//获取主控台信息
export function getConsoleInfo() {
  return http.request({
    url: `${hsot}/dashboard/console`,
    method: 'get',
  });
}
